The Dreamweaver JavaScript API > Behavior functions > dreamweaver.behaviorInspector.moveBehaviorUp() |
![]() ![]() ![]() |
dreamweaver.behaviorInspector.moveBehaviorUp()
Availability
Dreamweaver 3.0
Description
Moves a behavior higher in sequence by changing its execution order within the scope of an event.
Arguments
positionIndex
positionIndex
is the position of the action in the Behaviors panel. The first action in the list is at position 0.
Returns
Nothing.
Enabler
None.
Example
Assuming the Behaviors panel setup shown in this example, calling dw.behaviorInspector.moveBehaviorUp(3)
would swap the positions of the Custom Script and the Change Property actions on the onMouseOver
event. Calling dw.behaviorInspector.moveBehaviorUp()
for any other position would have no effect because the onClick
and onMouseOut
events each have only one behavior associated with them, and the behavior at position 2 is already at the top of the onMouseOver
group.
![]() ![]() ![]() |